package com.ifacebox.client.tools;

import java.io.File;

/**
 * @author znn
 */
public class SspPlaceSearchConstants {
    /**
     * 接口地址
     */
    public static final String PLACE_SEARCH_URL = "https://api.map.baidu.com/place/v2/suggestion?q=%s&region=%s&output=json&ak=%s";
    public static final String PLACE_DETAIL_URL = "https://api.map.baidu.com/place/v2/detail?uid=%s&scope=1&output=json&ak=%s";
    /**
     * 配置文件
     */
    public static final File PLACE_SEARCH_CONFIG_FILE = new File(SspUtils.getLocalPath(), "SspPlaceSearchConfig.json");
    /**
     * AK
     */
    public static final String AK = "NrcXzAVihI2Nu31CUjtNLm6Vw4oi1ExU";
    /**
     * 表头
     */
    public static final String[] PLACE_SEARCH_TABLE_COLUMN_NAME = new String[]{"编号", "区域", "POI名称", "POI地址", "搜索结果"};
    /**
     * POI验证状态
     */
    public static final String PLACE_SEARCH_STATUS_INFO = "POI数量：%s 成功：%s 失败：%s";
    public static final String PLACE_SEARCH_STATUS = "status";
    public static final String PLACE_SEARCH_MESSAGE = "message";
    public static final String PLACE_SEARCH_RESULT = "result";
    public static final String PLACE_SEARCH_RESULT_UID = "uid";
    public static final String PLACE_SEARCH_RESULT_NAME = "name";
    public static final String PLACE_SEARCH_RESULT_ADDRESS = "address";
    /**
     * 成功
     */
    public static final String STATUS_OK = "0";
}
